<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      template="templates/template.xhtml">
    <ui:define name="body">
        
        <h:form>
            <h:panelGrid columns ="2">
                <h:outputText value="User Name"/>
                <p:inputText value="#{sessionController.userName}"/>
            </h:panelGrid>
            <p:commandButton value ="Log in" 
                             actionListener="#{sessionController.login}" 
                             action="logged-in" ajax="false"/>
        </h:form>
    </ui:define>
</ui:composition>
